package com.ruoyi.counter.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 器具使用记录对象 records
 *
 * @author 仝帅
 * @date 2021-07-29
 */
public class Records extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID  */
    private Long id;

    /** 使用人ID */
    @Excel(name = "使用人ID")
    private Long userid;

    /** 操作时间 */
    @Excel(name = "操作时间")
    private String operatetime;

    /** 归还时间 */
    @Excel(name = "归还时间")
    private String endtime;

    /** 记录状态 */
    @Excel(name = "记录状态")
    private Long type;

    /** 标签id */
    @Excel(name = "标签id")
    private String fid;

    /** 副柜id */
    @Excel(name = "副柜id")
    private Long countersubid;

    /** 工具id */
    @Excel(name = "工具id")
    private Long toolid;

    /** 使用人名称 */
    @Excel(name = "使用人名称")
    private String username;

    /** 代还人 */
    @Excel(name = "代还人")
    private Long thuserid;

    /** 状态，记录的完整状态，2已结束，1待归还 */
    @Excel(name = "状态，记录的完整状态，2已结束，1待归还")
    private String status;

    /** 借用人姓名 */
    @Excel(name = "借用人姓名")
    private String thusername;


    /** 部门ID */
    private Long deptId;

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }
    public void setSysUserName(String sysUserName) {
        this.sysUserName = sysUserName;
    }

    public void setCounterName(String counterName) {
        this.counterName = counterName;
    }

    public void setCounterMac(String counterMac) {
        this.counterMac = counterMac;
    }

    public void setToolName(String toolName) {
        this.toolName = toolName;
    }

    @Excel(name = "操作用户")
    private String sysUserName;
    @Excel(name = "工具柜名称")
    private String counterName;

    @Excel(name = "工具柜mac")
    private String counterMac;

    @Excel(name = "工具名称")
    private String toolName;



    public String getSysUserName() {
        return sysUserName;
    }

    public String getCounterName() {
        return counterName;
    }

    public String getCounterMac() {
        return counterMac;
    }

    public String getToolName() {
        return toolName;
    }



    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserid(Long userid)
    {
        this.userid = userid;
    }

    public Long getUserid()
    {
        return userid;
    }
    public void setOperatetime(String operatetime)
    {
        this.operatetime = operatetime;
    }

    public String getOperatetime()
    {
        return operatetime;
    }
    public void setEndtime(String endtime)
    {
        this.endtime = endtime;
    }

    public String getEndtime()
    {
        return endtime;
    }
    public void setType(Long type)
    {
        this.type = type;
    }

    public Long getType()
    {
        return type;
    }
    public void setFid(String fid)
    {
        this.fid = fid;
    }

    public String getFid()
    {
        return fid;
    }
    public void setCountersubid(Long countersubid)
    {
        this.countersubid = countersubid;
    }

    public Long getCountersubid()
    {
        return countersubid;
    }
    public void setToolid(Long toolid)
    {
        this.toolid = toolid;
    }

    public Long getToolid()
    {
        return toolid;
    }
    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }
    public void setThuserid(Long thuserid)
    {
        this.thuserid = thuserid;
    }

    public Long getThuserid()
    {
        return thuserid;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setThusername(String thusername)
    {
        this.thusername = thusername;
    }

    public String getThusername()
    {
        return thusername;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userid", getUserid())
            .append("operatetime", getOperatetime())
            .append("endtime", getEndtime())
            .append("type", getType())
            .append("fid", getFid())
            .append("countersubid", getCountersubid())
            .append("toolid", getToolid())
            .append("username", getUsername())
            .append("thuserid", getThuserid())
            .append("status", getStatus())
            .append("thusername", getThusername())
            .toString();
    }
}
